/*
 * @Author: 1453937336@qq.com 1453937336@qq.com
 * @Date: 2024-05-09 10:30:21
 * @LastEditors: 1453937336@qq.com 1453937336@qq.com
 * @LastEditTime: 2024-07-10 11:32:45
 * @FilePath: \itforce-hris\src\api\employees\employees.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import service from '@/utils/request';

// 查询列表-合同
export function GetContractPage(params: {}) {
  return service({
    url: '/itf/employee/web/contract',
    method: 'get',
    params
  })
}

// 新增-合同
export function PostContractAdd(data: {}) {
  return service({
    url: '/itf/employee/web/contract',
    method: 'post',
    data
  })
}

// 根据uuid删除-合同
export function DeleteContractUuid(uuid: {}) {
  return service({
    url: '/itf/employee/web/contract/uuid/' + uuid,
    method: 'delete'
  })
}

// ---------------------- 教育培训 -------------------------------
// 查询列表-合同
export function GetEducationPage(params: {}) {
  return service({
    url: '/itf/employee/web/education',
    method: 'get',
    params
  })
}

// 新增
export function PosteducationAdd(data: {}) {
  return service({
    url: '/itf/employee/web/education',
    method: 'post',
    data
  })
}

// 根据uuid修改
export function PoutEducationUuid(data: any) {
  return service({
    url: '/itf/employee/web/education/uuid/' + data.uuid,
    method: 'put',
    data
  })
}

// 根据uuid查教育培训详情
export function GetEducationUuid(uuid: any) {
  return service({
    url: `/itf/employee/web/education/uuid/${uuid}`,
    method: 'get'
  })
}

// 根据uuid删除
export function DeleteEducationUuid(uuid: {}) {
  return service({
    url: '/itf/employee/web/education/uuid/' + uuid,
    method: 'delete'
  })
}

// ------------------ 地址 ------------------------------------------
// 查询列表
export function GetAddressManagementPage(params: {}) {
  return service({
    url: '/itf/employee/web/address/management/page',
    method: 'get',
    params
  })
}

// 新增
export function PostAddressManagementAdd(data: {}) {
  return service({
    url: '/itf/employee/web/address/management',
    method: 'post',
    data
  })
}

// 根据uuid修改
export function PutAddressManagementUuid(data: any) {
  return service({
    url: '/itf/employee/web/address/management/uuid/' + data.uuid,
    method: 'put',
    data
  })
}

// 根据uuid查详情
export function GetAddressManagementUuid(uuid: any) {
  return service({
    url: `/itf/employee/web/address/management/uuid/${uuid}`,
    method: 'get'
  })
}

// 根据uuid删除
export function DeleteAddressManagementUuid(uuid: {}) {
  return service({
    url: '/itf/employee/web/address/management/uuid/' + uuid,
    method: 'delete'
  })
}
// ------------------ 健康管理 ------------------------------------------
// 查询列表
export function GetHealthManagementPage(params: {}) {
  return service({
    url: '/itf/employee/web/health/management/page',
    method: 'get',
    params
  })
}

// 新增
export function PostHealthManagementAdd(data: {}) {
  return service({
    url: '/itf/employee/web/health/management',
    method: 'post',
    data
  })
}

// // 根据uuid修改
export function PutHealthManagementUuid(data: any) {
  return service({
    url: '/itf/employee/web/health/management/uuid/' + data.uuid,
    method: 'put',
    data
  })
}

// 根据uuid查详情
export function GetHealthManagementUuid(uuid: any) {
  return service({
    url: `/itf/employee/web/health/management/uuid/${uuid}`,
    method: 'get'
  })
}

// 根据uuid删除
export function DeleteHealthManagementUuid(uuid: {}) {
  return service({
    url: '/itf/employee/web/health/management/uuid/' + uuid,
    method: 'delete'
  })
}

// ---------------问卷-------------------------------------
// 查询列表
export function GetQuestionnairePage(params: {}) {
  return service({
    url: '/itf/employee/web/questionnaire',
    method: 'get',
    params
  })
}

// 批量新增
export function PostQuestionnaireBatchAdd(data: {}) {
  return service({
    url: '/itf/employee/web/questionnaire/batch',
    method: 'post',
    data
  })
}

// 根据uuid批量修改
export function PutQuestionnaireBatchUuid(data: any) {
  return service({
    url: '/itf/employee/web/questionnaire/batch/uuid',
    method: 'put',
    data
  })
}
// --------------------- 工作许可证 ----------------------------
// 查询列表
export function GetWorkPermitPage(params: {}) {
  return service({
    url: '/itf/employee/web/work/permit/page',
    method: 'get',
    params
  })
}

// 新增
export function PostWorkPermitAdd(data: {}) {
  return service({
    url: '/itf/employee/web/work/permit',
    method: 'post',
    data
  })
}

// 根据uuid删除
export function DeleteWorkPermitUuid(uuid: {}) {
  return service({
    url: '/itf/employee/web/work/permit/uuid/' + uuid,
    method: 'delete'
  })
}

// 根据uuid查详情
export function GetWorkPermitUuid(uuid: any) {
  return service({
    url: `/itf/employee/web/work/permit/uuid/${uuid}`,
    method: 'get'
  })
}

// 根据uuid修改
export function PutWorkPermitUuid(data: any) {
  return service({
    url: '/itf/employee/web/work/permit/uuid/'+ data.uuid,
    method: 'put',
    data
  })
}
